import {ref} from 'vue'
import { defineStore } from 'pinia'
import { pageName } from '@/types/viewName'
export const useViewStore = defineStore('view',()=>{
    const viewPage = ref(pageName.主页) //默认在主页
    function changePage(to:pageName){   //切换路由标识
        viewPage.value = to
    }
    return {viewPage,changePage}
})